﻿<%@ Page Title="Password Restore" Language="C#" MasterPageFile="~/Pages/Auth/AuthMaster.Master" AutoEventWireup="true" CodeBehind="SSRP.aspx.cs" Inherits="WarehouseWebAPP.Pages.Auth.SSRP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style22
        {
            color: #607894;
            }
        .style23
        {
            color: #607894;
            height: 23px;
            width: 160px;
        }
        .style24
        {
            color: #607894;
            width: 416px;
        }
        .style25
        {
            color: #607894;
            height: 23px;
            width: 416px;
        }
        .style26
        {
            color: #FFFFFF;
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1" style="height: 129px; width: 111%">
    <tr>
        <td bgcolor="#5D7B9D" class="style26" colspan="2">
            Password Recovery</td>
    </tr>
    <tr>
        <td class="style22" colspan="2" align="center">
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                <ProgressTemplate>
                    <img alt="" src="../images/update.gif" 
    style="width: 31px; height: 31px" />
                </ProgressTemplate>
            </asp:UpdateProgress>
        </td>
    </tr>
    <tr>
        <td class="style22">
            Username: </td>
        <td class="style24">
            <asp:TextBox ID="UserNameTextBox" runat="server" Width="175px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="UserNameTextBox" ErrorMessage="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="style23">
            ID: </td>
        <td class="style25">
            <asp:TextBox ID="IDTextBox" runat="server" width="175px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="IDTextBox" ErrorMessage="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="style22">
            E-mail Address: </td>
        <td class="style24">
            <asp:TextBox ID="EmailTextBox" runat="server" width="175px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="EmailTextBox" ErrorMessage="*"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="EmailTextBox" ErrorMessage="Invalid Email Address" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td class="style22">
            Password:</td>
        <td class="style24">
            <asp:TextBox ID="PasswordTextBox" runat="server" width="175px" 
                TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="PasswordTextBox" ErrorMessage="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="style22">
            Retype Password:</td>
        <td class="style24">
            <asp:TextBox ID="ConfirmTextBox" runat="server" 
                TextMode="Password" width="175px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="ConfirmTextBox" ErrorMessage="*"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="PasswordTextBox" ControlToValidate="ConfirmTextBox" 
                ErrorMessage="Passwords Differ"></asp:CompareValidator>
        </td>
    </tr>
    <tr>
        <td align="center" colspan="2">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Label ID="StatusLabel" runat="server" BackColor="#FFFFCC" 
                ForeColor="Maroon" 
                Text="Status" 
                Visible="False"></asp:Label>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="ResetButton" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr>
        <td colspan="2" align="right">
            <asp:Button ID="ResetButton" runat="server" Text="Reset Password" BackColor="#FFFBFF" 
                BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px"  
                Font-Names="Verdana" Font-Size="Small" ForeColor="#284775" 
                onclick="ResetButton_Click" />
        </td>
    </tr>
</table>
</asp:Content>
